Skip to content

Update pcaspy template files#326

Open
xresende wants to merge 4 commits intomasterfrom
update-pcaspy-templates
Open

Update pcaspy template files#326
xresende wants to merge 4 commits intomasterfrom
update-pcaspy-templates

Conversation

@xresende
Copy link
Copy Markdown
Contributor

depends on #319

@xresende xresende marked this pull request as ready for review October 10, 2025 12:33
import time as _time

__version__ = _pvs.__version__
import epics as _epics
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import epics from siriuspy here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

# status scanning
self.quit = False
self.scanning = False
self.thread_check_conns = _epics.ca.CAThread(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use siriuspy wrapper.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

self._driver = driver
self._pvs_database = _csdev.pvs_database
# use pyepics recommendations for threading
_epics.ca.use_initial_context()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed here. the thread class will do this inside the thread.

@anacso17
Copy link
Copy Markdown
Contributor

anacso17 commented Dec 3, 2025

@xresende @fernandohds564 did you try cookiecutter for python templates? Maybe we could migrate for it in this PR.

Base automatically changed from dev/maint/modernize-install to master December 3, 2025 22:58
@xresende
Copy link
Copy Markdown
Contributor Author

@xresende @fernandohds564 did you try cookiecutter for python templates? Maybe we could migrate for it in this PR.

no, @anacso17 . have you tried it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants